package com.konke.sdslibrary.push;

import android.content.Context;

import com.igexin.sdk.PushManager;
import com.zsj.comminlibrary.util.log.XLog;

public class MyPushManager {
    private static MyPushManager sManager;
    private Context mContext;

    private MyPushManager(Context context) {
        this.mContext = context;
        init();
    }

    public static MyPushManager getInstance(Context context) {
        if (sManager == null) {
            sManager = new MyPushManager(context);
        }
        return sManager;
    }

    private void init() {
        XLog.e("初始化个推");
        PushManager.getInstance().initialize(mContext,GeTuiPushService.class);
        PushManager.getInstance().registerPushIntentService(mContext, GetuiIntentService.class);
    }
}
